#include "Camera.h"
#include "PointLight.h"
#include "RenderContext.h"
#include "GlobalGPUParamGroup.h"

namespace egg{

    PointLight::PointLight():Light(LT_Point){

    }

    void PointLight::onDraw(RenderContext& _context){
        gGPUParamGroup->mLightColor->set(mColor);
        gGPUParamGroup->mLightPosition->set(
            _context.mCamera->getWorld2EyeMatrix()*mLocal2WorldMatrix);
    }

}